remove na in sum function